package com.bishe.supermarket.mapper;

import com.bishe.supermarket.pojo.Commodity;
import com.bishe.supermarket.pojo.Profit;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommodityMapper {
    public List<Commodity> selectByName(String categoryName);
    public List<Commodity> selectAll();
    public int update(Commodity commodity);
    public List<Commodity> selectByComName(String commodityName);
    public Commodity select(String name);
    public int delete(String name);
    public int updateNum(Commodity commodity);
    public int insert(Commodity commodity);
}
